$OpenBSD: patch-src_fe-common_core_fe-core-commands_c,v 1.2 2009/09/10 21:31:42 martynas Exp $

Don't assume the size of time_t.

--- src/fe-common/core/fe-core-commands.c.orig	Tue Jul 21 20:47:59 2009
+++ src/fe-common/core/fe-core-commands.c	Sat Aug  8 09:10:46 2009
@@ -177,7 +177,7 @@ static void cmd_uptime(char *data)
 	g_return_if_fail(data != NULL);
 
 	if (*data == '\0') {
-		uptime = time(NULL) - client_start_time;
+		uptime = (long)difftime(time(NULL), client_start_time);
 		printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
 			  "Uptime: %ldd %ldh %ldm %lds",
 			  uptime/3600/24, uptime/3600%24,
